import { createRouter, createWebHashHistory } from 'vue-router'


const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue'),
      redirect: "/textmange",
      children: [
        {
          path: '/textmange',
          name: '文章管理',
          component: ()=>import('../views/TextMangeView.vue')
        },
        {
          path: '/textsend',
          name: '文章添加',
          component: ()=>import('../views/TextSendView.vue')
        },
      ]
    },
   
  ]
})

export default router
